package yui.bss.demo.ro;

import cn.hutool.core.codec.Base64;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value = "LinkRo", description = "连接接受对象")
@Data
public class LinkRo implements Serializable {

    @ApiModelProperty(value = "link")
    private String link;

    @JsonIgnore
    public String getDecryptLink() {
        return Base64.decodeStr(link);
    }

}
